package com.modifymetrodemo;

import android.app.Application;
import android.util.Log;

import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.bridge.ReactMarker;
import com.facebook.soloader.SoLoader;
import com.modifymetrodemo.async.MyReactApplication;

public class MainApplication extends Application implements ReactApplication {

    public static MainApplication mainApplication;

    @Override
    public ReactNativeHost getReactNativeHost() {
        return MyReactApplication.getInstance().getReactNativeHost();
    }

    @Override
    public void onCreate() {
        super.onCreate();
        mainApplication = this;
        SoLoader.init(this, /* native exopackage */ false);
        MyReactApplication.getInstance().init(this);
    }
}
